package com.fqgj.sentry.biz.thread;

import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * Created by ykpbean kangping.ying@yuntu-inc.com
 *
 * @description
 * @create 2017-08-11 下午3:45
 */
@Component
public class BackstageThread {
    private static final Integer threadNumber = 2;

    public ExecutorService threadPool;

    @PostConstruct
    public void createThread() {
        threadPool = Executors.newFixedThreadPool(threadNumber);
    }


}
